﻿using System;
using System.Collections.Generic;
using System.IO.Ports;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SerialDemo.Services
{
    public interface ISerialPortService
    {
        event EventHandler<string> DataReceived;

        string[] GetPort();
        bool GetStatus();
        void Open(string portName, int baudRate);
        void Close();
        void Write(string data);
    }
}
